#include<stdio.h>
int main()
{
	int a,b;
	double m,n;
	scanf("%d %d",&a,&b);
	m=1/6.0*3.1415926*(a/10.0)*(a/10.0)*(a/10.0)*7.86;
	n=1/6.0*3.1415926*(b/10.0)*(b/10.0)*(b/10.0)*19.3;
	printf("%.3lf %.3lf",m,n);
	return 0;
}
